﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zhaoxi.AdvancedCourse.Attrs;

namespace Zhaoxi.AdvancedCourse.Models
{
    [Remark("名目信息类")]
    internal class ItemInfo
    {
        [Remark("编号")]
        public int Id { get; set; }
        [Remark("类型")]
        public string ItemType { get; set; }
        [Remark("名称")]
        public string ItemName { get; set; }
        [Remark("总数")]
        public static int count=3;
        [Remark("名目描述")]
        public string remark;
        private string itemType="Income";

        [Remark("生成名目信息方法")]
        public string GetItemInfo()
        {
            return Id + "," + ItemType + "," + ItemName;
        }

        public void SetCount(int itemCount)
        {
            count += itemCount; 
        }

        public static int GetCount()
        {
            return count;
        }
    }
}
